package JVM.chapter03;

/**
 * // todo  pc寄存器(程序计数器) 存放了 “ 即将执行指令的地址 ” 下面的 0,2,3,5,6,7,8,9...
 *          后面的叫 指令
 *
 *          0: bipush        10
 *          2: istore_1
 *          3: bipush        20
 *          5: istore_2
 *          6: iload_1
 *          7: iload_2
 *          8: iadd
 *          9: istore_3
 *         10: ldc           #2                  // String abc
 *         12: astore        4
 *         14: getstatic     #3                  // Field java/lang/System.out:Ljava/io/PrintStream;
 *         17: iload_1
 *         18: invokevirtual #4                  // Method java/io/PrintStream.println:(I)V
 *         21: getstatic     #3                  // Field java/lang/System.out:Ljava/io/PrintStream;
 *         24: iload_2
 *         25: invokevirtual #4                  // Method java/io/PrintStream.println:(I)V
 *         28: return
 */
public class PcRegisterTest {
    public static void main(String[] args) {
        int i = 10;
        int j = 20;
        int k = i + j;

        String s = "abc";
        System.out.println(i);
        System.out.println(j);
    }
}
